package com.itheima.thread.阻塞队列.demo2;

import java.util.concurrent.ArrayBlockingQueue;

public class Demo {
    public static void main(String[] args) {
        //创建一个阻塞队列
        ArrayBlockingQueue<String> abq = new ArrayBlockingQueue<>(1);

        //创建线程对象
        Cooker c = new Cooker(abq);
        Foodie f = new Foodie(abq);

        c.start();
        f.start();
    }
}
